package com.atguigu03.field_method.field.exer1;

/**
 * ClassName: EmployeeTest
 * Package: com.atguigu03.field_method.field.exer1
 * Description:
 * 声明EmployeeTest测试类，并在main方法中，创建2个员工对象，并为属性赋值，并打印两个员工的信息。
 *
 * @Author 姜
 * @Create 2023/11/16 14:28
 * @Version 1.0
 */
public class EmployeeTest {
    public static void main(String[] args) {
        // 创建类的实力（创建类的对象、类的实例化）
        Employee emp1 = new Employee();
        emp1.id = 10001;
        emp1.name = "踩虚鲲";
        emp1.age = 24;
        emp1.salary = 1800;
        System.out.println("id = " + emp1.id + ",name = " + emp1.name + ",age = " + emp1.age + ",salary = " + emp1.salary);

        // 创建Employee的第二个对象
        Employee emp2 = new Employee();

    }
}
